package com.bjpowernode.springboot.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bjpowernode.springboot.entity.Character;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjpowernode.springboot.entity.CharacterVO;
import com.bjpowernode.springboot.entity.UserVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yan
 * @since 2021-10-12
 */
public interface CharacterMapper extends BaseMapper<Character> {
    UserVO charVOByName(String characterName);
    CharacterVO charByID(Integer id);
    CharacterVO charByIdOrName(@Param("id") Integer id, @Param("characterName") String characterName);
    IPage<CharacterVO> charPage(Page<CharacterVO> page,Integer id);
}
